﻿package asc {
	import flash.display.MovieClip;
	import flash.events.*;
	public class MenuElement extends MovieClip{
		static public const MENU_START_POS_X:uint=33;
		static public const MENU_START_POS_Y:uint=130;
		public var mText:String;
		public var oMenuButton:MovieClip;
		public var mTarget:Array=new Array();
		// Constants:
		// Public Properties:
		// Private Properties:
	
		// Initialization:
		public function MenuElement() {
			this.buttonMode=true;
			this.useHandCursor=true;
			this.oMenuButton=new MenuButton();
			this.addChild(this.oMenuButton);
			this.oMenuButton.mouseChildren=false;
			this.x=MenuElement.MENU_START_POS_X;
			this.y=MenuElement.MENU_START_POS_Y;
			//
			//this.addEventListener(MouseEvent.CLICK,this.onMouseClick);
			//testing
			this.oMenuButton.mTextC.mCaption.text="oO";
			this.mTarget['handler']="page";
			this.mTarget['id']=1;
			//trace(this.oMenuButton.mTextC.mCaption.text);
		}
		public function onMouseClick(event:MouseEvent){
			//parrent - reset all current
			//this - make current
			//this.dispatchEvent(new MEEvent(MEEvent.MENU_BUTTON_CLICK));
		}
		// Public Methods:
		// Protected Methods:
	}
	
}